Fix a multi HVM domain issue (bugzilla bug #542):
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 28 Feb 2006 09:18:34 +0000 (10:18 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 28 Feb 2006 09:18:34 +0000 (10:18 +0100)
commitf9ef80600b07d0eab56a5b913d0d2c1d61b55feb
tree62533d0770012e62a781a2cde0a6b8de689d1774
parentcd39504aca14de16c2dbb26b68ccc7b6364c0a90
Fix a multi HVM domain issue (bugzilla bug #542):
        This issue can be reproduced on SMP platform, while the domain 0
is UP. The reason is, after finishing a dma request, the dma thread will
trigger the interrupt and then clear the call back function. When guest
get the interrupt , it will try to check the call back function, if it
is set, then it will trigger a dma request again. So if the checking for
the callbackfunction happens between trigger interrupt and clear
callback function on dma thread, it will cause NULL function calling.
After with domain 0 UP and smp platform, this situation can be
reproduced easily.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
tools/ioemu/hw/ide.c